package com.springboot_shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//@TableName("t_product")
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @TableName("t_product")
    public class Product {
        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;
        @TableField("title")
        private String title;     //商品名称
        @TableField("price")
        private Integer price;      //商品价格
        @TableField("note")
        private String note;
        @TableField("code")
        private String code;    //商品编码
        @TableField("model")
        private String model;    //商品型号
        @TableField("stock")
        private Long stock;      //库存
        @TableField("input_user_id")
        private Integer inputUser;    //录入用户，可以是管理员，也可以是普通用户


}
